<template>
  <h1>Hello NuxtJS</h1>
</template>

<script>
export default {
  name: 'Hello',
  mounted() {
    this.$myInjectedFunction('works in mounted')
  },
  asyncData(context) {
    context.app.$myInjectedFunction('works with context')
  }
}
</script>

<style scoped>
h1 {
  color: blueviolet;
}
</style>
